//引入Mock
import Mock from "mockjs";
//引入假数据
import banner from "./banner.json";
import floor from "./floor.json";
import address from "./address.json";

//使用Mock拦截ajax请求,书写接口和响应
Mock.mock("/mock-api/banner", () => {
  return {
    code: 200,
    data: banner,
  };
});
Mock.mock("/mock-api/floor", () => {
  return {
    code: 200,
    data: floor,
  };
});
Mock.mock("/mock-api/address", () => {
  return {
    code: 200,
    data: address,
  };
});
